package com.qingmu.club.minaapi.plus.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 中台-一级菜单模块(没动态路由不适用)
 * </p>
 *
 * @author duke
 * @since 2019-12-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class AdminModule extends Model<AdminModule> {

    private static final long serialVersionUID=1L;

    @TableId(value = "module_id", type = IdType.AUTO)
    private Integer moduleId;

    private String moduleUrl;

    private Integer moduleSort;

    private String moduleDesc;

    /**
     * 菜单模块图标
     */
    private String moduleIcon;

    /**
     * 模块是否在线
     */
    private Integer online;

    /**
     * 默认跳转
     */
    private String redirect;

    /**
     * 显示标题
     */
    private String moduleTitle;


    public static final String MODULE_ID = "module_id";

    public static final String MODULE_URL = "module_url";

    public static final String MODULE_SORT = "module_sort";

    public static final String MODULE_DESC = "module_desc";

    public static final String MODULE_ICON = "module_icon";

    public static final String ONLINE = "online";

    public static final String REDIRECT = "redirect";

    public static final String MODULE_TITLE = "module_title";

    @Override
    protected Serializable pkVal() {
        return this.moduleId;
    }

}
